public class Test {
    public static void main(String[] args) {
        MyBinaryTree.TreeNode A=new MyBinaryTree.TreeNode(1);
        MyBinaryTree.TreeNode B=new MyBinaryTree.TreeNode(2);
        MyBinaryTree.TreeNode C=new MyBinaryTree.TreeNode(3);
        MyBinaryTree.TreeNode D=new MyBinaryTree.TreeNode(4);
        MyBinaryTree.TreeNode E=new MyBinaryTree.TreeNode(5);
        MyBinaryTree.TreeNode F=new MyBinaryTree.TreeNode(6);
        MyBinaryTree.TreeNode G=new MyBinaryTree.TreeNode(7);
        A.left=B;
        A.right=C;
        B.left=D;
        B.right=E;
        C.left=F;
        D.left=G;
        MyBinaryTree tree=new MyBinaryTree();
        tree.levelOrder(A);
    }
}
